package client;

public enum MessagePrefix {
    AUTH("AUTH"),
    BUY("BUY"),
    SALE("SALE"),

    ERRAUTH("ERRAUTH"),
    ERRADD("ERRADD"),

    ADDED("ADDED"),
    FILLED("FILLED"),
    AUTHOK("AUTHOK");

    private String prefix;

    MessagePrefix(final String prefix) {
        this.prefix = prefix;
    }

    public String getPrefix() {
        return prefix;
    }

    public boolean equalsString(String compareString) {
        return prefix.equals(compareString);
    }
}
